﻿$(document).ready(function ()
{
    $(document).ready(function()
    {
        var pathname = window.location.pathname;
        var b = pathname.split("/")[2];
        if (b == null)
        {
            b = "";
        }
        if (b == "Games")
        {
            b = "> Borðspil";
        }
        if (b == "About")
        {
            b = "> Um síðuna";
        }
        if (b == "Rules")
        {
            b = "> Reglur";
        }
        if (b == "MemGameView")
        {
            b = "> Samstæðuspil";
        }
        if (b == "GuilGameView")
        {
            b = "> Höggstokkurinn";
        }
        if (b == "ShowMemGame")
        {
            b = "> Samstæðuspil";
        }
        if (b == "ShowGuiGame")
        {
            b = "> Höggstokkurinn";
        }
        if (b == "ActiveGames")
        {
            b = "> Virk Spil";
        }
        if (b == "Groups")
        {
            b = "> Hópar";
        }
        if (b == "Tournaments")
        {
            b = "> Mót";
        }
        if (b == "MyPage")
        {
            b = "> Mín síða";
        }
        if (b == "LogOn")
        {
            b = "> Innskráning";
        }
        document.getElementById("ActiveId").innerHTML = b
    });
})

$(document).ready(function ()
{
    $(document).ready(function ()
    {
        var pathname = window.location.pathname;
        var b = "pathname.split("/")[1]";
        if (pathname = "/Home")
        {
            b = "Heim";
        }
        else if (b == "Home")
        {
            b = "Heim";
        }
        else if (b == "Account")
        {
            b = "Heim";
        }
        else
        {
            b = "Heim";
        }
        document.getElementById("HomeId").innerHTML = b
    });
})

$(document).ready(function ()
{
    $(document).ready(function ()
    {
        var pathname = window.location.pathname;
        var b = pathname.split("/")[2];
        if (b == "MemGameView")
        {
            b = "> Borðspil";
        }
        else if (b == "ShowGame")
        {
            b = "> Virkir leikir";
        }
        else if (b == "GuilGameView")
        {
            b = "> Borðspil";
        }
        else { b = "" };
        document.getElementById("GameId").innerHTML = b
    });
})